import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/login',
    name: 'Loign',
    component: () => import('@/views/Login')
  },
  { // 客流监控
    path: '/trafficMonitor',
    name: 'TrafficMonitor',
    component: () => import('@/views/trafficMonitor')
  },
  { // 历史客流
    path: '/history',
    name: 'History',
    component: () => import('@/views/history')
  },
  { // 客流统计
    path: '/trafficStatistics',
    name: 'TrafficStatistics',
    component: () => import('@/views/trafficStatistics')
  },
  { // 渠道分析
    path: '/channelAnalysis',
    name: 'ChannelAnalysis',
    component: () => import('@/views/channelAnalysis')
  },
  { // 游客画像
    path: '/touristsPortrait',
    name: 'TouristsPortrait',
    component: () => import('@/views/touristsPortrait')
  },
  { // 节假日客流
    path: '/holiday',
    name: 'Holiday',
    component: () => import('@/views/holiday')
  }
]

const router = new VueRouter({
  routes
})

export default router
